package com.tmpt.dao.impl.templateDao;

/**
 * Created by wxy on 2016/12/11.
 */
public class TemplateParent4PGDaoUtils {

    /*public Result getSql4templateSearchByTableName(A1TemplateTable table,TemplateUtils templateUtils) throws Exception{

        Result resultObj = new Result();
        //找到所有查询条件字段的别名
        Map<String,String> columnAliasMap = templateUtils.loadColumnTableAlias(table);
        //找到所有字段的数据类型
        Map<String,String> dbColumndataTypeMap = templateUtils.loadColumnDataType(table);

        resultObj.getResultMap().put("dbColumndataTypeMap",dbColumndataTypeMap);
        resultObj.getResultMap().put("columnAliasMap",columnAliasMap);

        return resultObj;
    }



    public Result getSql4templateSearchByTableNameSql(A1TemplateTable table,Map<String,String[]> paramMap,TemplateUtils templateUtils) throws Exception{
        StringBuffer sb = new StringBuffer();
        StringBuffer sb4report = new StringBuffer();
        Result resultObj = new Result();
        //找到所有查询条件字段的别名
        Map<String,String> columnAliasMap = templateUtils.loadColumnTableAlias(table);
        //找到所有字段的数据类型
        Map<String,String> dbColumndataTypeMap = templateUtils.loadColumnDataType(table);

        resultObj.getResultMap().put("dbColumndataTypeMap",dbColumndataTypeMap);
        resultObj.getResultMap().put("columnAliasMap",columnAliasMap);

        return resultObj.success();

    }*/
}
